package com.itheima.day06.extra2;


public class Activity {
    State state = null;
    public int cash = 3000;
    public String username;
    public String password;
    public int passwordErrorTimes = 0;
    State lockedState = new Locked(this);
    State loginState = new Login(this);
    State logOutState = new LoginOut(this);
    State usedState = new Used(this);

    public Activity() {
        this.state = loginState;
    }
}
